def whileSum():
    i=1
    sum=0
    while i <= 100:
        sum+=i
        i+=1
        return sum
def forSum(num):
    sum=0
    for i in range(1,num+1):
        sum +=i
    return sum

def forJiSum(num):
    sum=0
    for i in range(1,num+1):
        if i%2!=0:
            sum += i
    return sum


if __name__ == '__main__':
    print(whileSum())
    print(forSum(500))
    print(forJiSum(3000))